home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / source / monitor / monitor.h < prev    next >
Encoding:
C/C++ Source or Header  |  1985-03-06  |  1.9 KB  |  68 lines

  1. /*
  2. **  MONITOR.H -- globals for the interactive terminal monitor
  3. **
  4. **    Version:
  5. **        @(#)monitor.h    8.1    12/31/84
  6. */
  7.  
  8. # include    <stdio.h>
  9. # include    <useful.h>
  10.  
  11. /* various global names and strings */
  12. char        Qbname[30];    /* pathname of query buffer */
  13. extern char    *Fileset;    /* unique string */
  14. extern char    *Pathname;    /* pathname of INGRES root */
  15.  
  16. /* flags */
  17. char        Nodayfile;    /* suppress dayfile/prompts */
  18.                 /* 0 - print dayfile and prompts
  19.                 ** 1 - suppress dayfile but not prompts
  20.                 ** -1 - supress dayfile and prompts
  21.                 */
  22. char        Userdflag;    /* same: user flag */
  23.                 /*  the Nodayfile flag gets reset by include();
  24.                 **  this is the flag that the user actually
  25.                 **  specified (and what s/he gets when in
  26.                 **  interactive mode.            */
  27. char        Autoclear;    /* clear query buffer automatically if set */
  28. char        Notnull;    /* set if the query is not null */
  29. char        Prompt;        /* set if a prompt is needed */
  30. char        Nautoclear;    /* if set, disables the autoclear option */
  31. char        Phase;        /* set if in processing phase */
  32.  
  33. /* query buffer stuff */
  34. FILE        *Qryiop;    /* the query buffer */
  35. char        Newline;    /* set if last character was a newline */
  36.  
  37. /* other stuff */
  38. int        Xwaitpid;    /* pid to wait on - zero means none */
  39. int        Error_id;    /* the error number of the last err */
  40.  
  41. /* \include support stuff */
  42. FILE        *Input;        /* current input file */
  43. int        Idepth;        /* include depth */
  44. char        Oneline;    /* deliver EOF after one line input */
  45. bool        GiveEof;    /* if set, return EOF on next getch */
  46.  
  47. /* commands to monitor */
  48. # define    C_APPEND    1
  49. # define    C_BRANCH    2
  50. # define    C_CHDIR        3
  51. # define    C_EDIT        4
  52. # define    C_GO        5
  53. # define    C_INCLUDE    6
  54. # define    C_MARK        7
  55. # define    C_LIST        8
  56. # define    C_PRINT        9
  57. # define    C_QUIT        10
  58. # define    C_RESET        11
  59. # define    C_TIME        12
  60. # define    C_EVAL        13
  61. # define    C_WRITE        14
  62. # define    C_SHELL        15
  63. # define    C_SYSTRACE    16
  64. # define    C_SYSRESET    17
  65.  
  66. /* stuff for querytrap facility */
  67. extern FILE    *Trapfile;
  68.